CC=gcc
CFLAGS=-Wall -DDEBUG -g
BASEPATH = ~/Thesis/Cprojects/SourceCode
appEXE = rasterScanTest
apiObj1 = rasterScanTwoPass
apiObj2 = linkedList
objects = rasterScanTest.o \
			 $(BASEPATH)/API/$(apiObj1)/$(apiObj1).o \
			 $(BASEPATH)/API/$(apiObj2)/$(apiObj2).o


$(appEXE): $(objects)
	$(CC) -o $(appEXE) $(objects)
$(apiObj1).o: $(BASEPATH)/API/$(apiObj1)/$(apiObj1).c
	$(CC) -o $(BASEPATH)/API/$(apiObj1)/$(apiObj1).c 
$(apiObj2).o: $(BASEPATH)/API/$(apiObj2)/$(apiObj2).c
	$(CC) -o $(BASEPATH)/API/$(apiObj2)/$(apiObj2).c

clean:
	rm -f $(appEXE) $(objects)
